package cn.iocoder.yudao.module.infrastructure.region.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "区域节点 VO")
@Data
public class RegionNodeVO {

    @Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "110000")
    private String code;

    @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "北京")
    private String name;

    @Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    private String parentCode;

    private List<RegionNodeVO> children;

}
